package com.zretc.entity;

/**
 *
 */
public class Comment {
    private Integer commentId;
    private Integer userId;
    private User user;
    private Integer productId;
    private Product product;
    private String commentTime;
    private String commentContent;
    private Integer commentFatherId;
    private Integer commentScore;

    public Comment() {
    }

    public Comment(Integer commentId, Integer userId, User user, Integer productId, Product product, String commentTime, String commentContent,
                   Integer commentFatherId, Integer commentScore) {
        this.commentId = commentId;
        this.userId = userId;
        this.user = user;
        this.productId = productId;
        this.product = product;
        this.commentTime = commentTime;
        this.commentContent = commentContent;
        this.commentFatherId = commentFatherId;
        this.commentScore = commentScore;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public String getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(String commentTime) {
        this.commentTime = commentTime;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Integer getCommentFatherId() {
        return commentFatherId;
    }

    public void setCommentFatherId(Integer commentFatherId) {
        this.commentFatherId = commentFatherId;
    }

    public Integer getCommentScore() {
        return commentScore;
    }

    public void setCommentScore(Integer commentScore) {
        this.commentScore = commentScore;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", userId=" + userId +
                ", user=" + user +
                ", productId=" + productId +
                ", product=" + product +
                ", commentTime='" + commentTime + '\'' +
                ", commentContent='" + commentContent + '\'' +
                ", commentFatherId=" + commentFatherId +
                ", commentScore=" + commentScore +
                '}';
    }
}
